﻿using System;

namespace eLearning.Model
{
    public enum Jawaban
    {
        None, A, B, C, D
    }

    public class Question
    {
        public string Id { get; set; }
        public string NoUrut { get; set; }
        public string Pertanyaan { get; set; }
        public Jawaban Jawaban { get; set; }
        public Jawaban DiJawab { get; set; }
        public string PilihanA { get; set; }
        public string PilihanB { get; set; }
        public string PilihanC { get; set; }
        public string PilihanD { get; set; }
        public Quiz Quis { get; set; }
        public DetailMatkul DetMatkul { get; set; }

        public override string ToString()
        {
            return Pertanyaan.Substring(0, Pertanyaan.Length >= 30 ? 30 : Pertanyaan.Length) + (Pertanyaan.Length >= 30 ? "..." : "");
        }
    }
}
